package folderLogger.fileFilters;

import java.io.FileFilter;

public class ExtensionFilterFactory {

	public static FileFilter getExtensionFilter(ExtensionFilterType type, String[] extensions)
	{
		switch(type)
		{
		case ALL:
			return new ExtensionAllFilter();
		case EXCLUDE:
			return new ExtensionExcludeFilter(extensions);
		case INCLUDE:
			return new ExtensionIncludeFilter(extensions);
		case NONE:
			return new ExtensionNoneFilter();
		default:
			return null;
		
		}
	}
}
